package com.management.department.teacherinfosystem.DTO;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;
import java.math.BigDecimal;

@Data
@JsonIgnoreProperties(ignoreUnknown = true) // 兼容前端传来的多余字段（如 id）
public class FundingDTO {
    private BigDecimal amount;    // 金额
    private String purpose;       // 用途

    public FundingDTO() {}

    public FundingDTO(BigDecimal amount, String purpose) {
        this.amount = amount;
        this.purpose = purpose;
    }
}
